﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WcfServices.GRUDInterfaces;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.IO;

namespace WcfServices.ServiceInterfaces
{   
    [ServiceContract]
    interface IMusculoService : ICreate, IRead, IUpdate, IDelete
    {
        [OperationContract]
        [WebInvoke(Method = "GET",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]

        string ListarMusculosPrimarios(int idEjercicio);

        [OperationContract]
        [WebInvoke(Method = "GET",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]
        string ListarMusculosSecundarios(int idEjercicio);


        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        void SobrescribirRelacionesPrimarios(long ejercicio, long[] musculos);

        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        void SobrescribirRelacionesSecundarios(long ejercicio, long[] musculos);

        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]
        [OperationContract]
        void SobrescribirRelaciones(long ejercicio, long[] primarios, long[] secundarios);

           [WebInvoke(Method = "GET",
               BodyStyle = WebMessageBodyStyle.Bare,
               RequestFormat = WebMessageFormat.Json,
               ResponseFormat = WebMessageFormat.Json)]
           [OperationContract]
           string ConstantesMusculos();
    }
}
